console.log('Hello world！1122333222222222344');

if ('serviceWorker' in navigator) {
  window.addEventListener('load', () => {
    navigator.serviceWorker.register('/service-worker.js').then((registration) => {
      console.log('Service Worker 注册成功: ', registration);
    })
      .catch((registrationError) => {
        console.log('Service Worker 注册失败: ', registrationError);
      });
  });
}
